package com.assets.Check.offlineCheck;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @作者(author): WR
 * @创建时间(date): 2022/1/6
 */
public class OfflineCheckData implements Parcelable {

    /**
     * date : 2022-01-06 10:16:52
     * assets2 : []
     * assets1 : [{"division":"JTSBU","image":"/tanwan/image/0b3f9b2773cdd662d68d872d86a0c0c1.jpeg","assetNumber":"ZXWL01012021110001","assetName":"屏风办公桌","model":"22","place":"广州-奥体-1栋","dept":"财务部","type":"服务器","user":"吴旭霞"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00022021110001","assetName":"A-34型沙发","model":"原木","place":"广州-奥体-1栋","dept":"财务部","type":"办公设备","user":"张宝芳"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00022021110002","assetName":"A-34型沙发","model":"22","place":"广州-奥体-1栋","dept":"财务部","type":"办公设备","user":"张宝芳"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00022021110003","assetName":"A-34型沙发","model":"原木","place":"广州-奥体-1栋","dept":"财务部","type":"办公设备","user":"张宝芳"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042016120004","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"财务部","type":"低值易耗品","user":"黄敬聪"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042016120005","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"财务部","type":"低值易耗品","user":"张宝芳"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042016120006","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"财务部","type":"低值易耗品","user":"马春灵"},{"division":"JTSBU","image":"","assetNumber":"JXTW01022020110009","assetName":"笔记本","model":"联想小新14","place":"广州-奥体-B栋1楼","dept":"人力资源部","type":"电脑","user":"赖文锋"},{"division":"JTSBU","image":"","assetNumber":"JXTW01022021030018","assetName":"主机","model":"高配i5","place":"广州-奥体-B栋1楼","dept":"人力资源部","type":"电脑","user":"李泳军"},{"division":"JTSBU","image":"","assetNumber":"JXTW01022021040025","assetName":"主机","model":"高配i5","place":"广州-奥体-B栋1楼","dept":"人力资源部","type":"电脑","user":"谢淑君"},{"division":"JTSBU","image":"","assetNumber":"ZXWL01022017020001","assetName":"主机","model":"i5-6400/8G/1T","place":"广州-奥体-1栋","dept":"人力资源部","type":"电脑","user":"刘心宜"},{"division":"JTSBU","image":"","assetNumber":"JXTW01022021030019","assetName":"显示器","model":"AOC","place":"广州-奥体-B栋1楼","dept":"人力资源部","type":"电脑","user":"李泳军"},{"division":"JTSBU","image":"","assetNumber":"ZXWL01022017030004","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"人力资源部","type":"电脑","user":"刘心宜"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042018030001","assetName":"主机","model":"i5-7400/8G/1T","place":"广州-奥体-1栋","dept":"人力资源部","type":"低值易耗品","user":"关彩华"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042018010001","assetName":"主机","model":"i5","place":"广州-奥体-1栋","dept":"人力资源部","type":"低值易耗品","user":"陈佩"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042018030003","assetName":"主机","model":"i5-7400/8G/1T","place":"广州-奥体-1栋","dept":"人力资源部","type":"低值易耗品","user":"刘心宜"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042018030002","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"人力资源部","type":"低值易耗品","user":"关彩华"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042018010002","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"人力资源部","type":"低值易耗品","user":"陈佩"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042016120002","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"总经办","type":"低值易耗品","user":"罗锡虎"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042016120003","assetName":"显示器","model":"LG","place":"广州-奥体-1栋","dept":"总经办","type":"低值易耗品","user":"吴强"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042016120007","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"总经办","type":"低值易耗品","user":"黄炜毫"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120008","assetName":"笔记本","model":"MacBook Air","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"邱森仔"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120009","assetName":"笔记本","model":"MacBook Air","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"邢建军"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120010","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"李伟业"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120011","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"黄瑞亨"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120012","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"黄瑞亨"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120013","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"邱森仔"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120014","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"邢建军"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042019050001","assetName":"手绘板","model":"Wacom Intuos Pro 数位板 PTH-660/K0-F","place":"广州-奥体-1栋","dept":"技术部","type":"低值易耗品","user":"卢志坚"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042016120001","assetName":"显示器","model":"AOC","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"薛总"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017090001","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"薛总"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017090002","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"廖俞松"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017100001","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"万晓莹"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017110001","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"黄一航"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017110002","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"何明松"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017110003","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"王晓文"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042017110004","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"李嫦芳"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042019040001","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"李廷凯"},{"division":"SYSBU01","image":"","assetNumber":"ZXWL00042019070001","assetName":"手绘板","model":"WACOM INTUOS ART  CTH-690/BO","place":"广州-奥体-1栋","dept":"广告设计部","type":"低值易耗品","user":"肖慧文"},{"division":"JTSBU","image":"","assetNumber":"ZXWL01012021100001","assetName":"主机","model":"22","place":"广州-奥体-1栋","dept":"网络安全部","type":"服务器","user":"王童昊"},{"division":"JTSBU","image":"","assetNumber":"ZXWL00042017120001","assetName":"手机","model":"三星","place":"广州-奥体-1栋","dept":"网络安全部","type":"低值易耗品","user":"朱益荣"}]
     * num1 : 41
     * createdate : 2022-01-06 10:16:47
     * sum : 41
     * assets4 : []
     * createuser : Administrator
     * assets3 : []
     * num4 : 0
     * num3 : 0
     * num2 : 0
     */

    private String date;
    private String num1;
    private String createdate;
    private String sum;
    private String createuser;
    private String num4;
    private String num3;
    private String num2;
    private List<AssetsBean> assets2;
    private List<AssetsBean> assets1;
    private List<AssetsBean> assets4;
    private List<AssetsBean> assets3;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getNum1() {
        return num1;
    }

    public void setNum1(String num1) {
        this.num1 = num1;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getNum4() {
        return num4;
    }

    public void setNum4(String num4) {
        this.num4 = num4;
    }

    public String getNum3() {
        return num3;
    }

    public void setNum3(String num3) {
        this.num3 = num3;
    }

    public String getNum2() {
        return num2;
    }

    public void setNum2(String num2) {
        this.num2 = num2;
    }


    public List<AssetsBean> getAssets1() {
        return assets1;
    }

    public void setAssets1(List<AssetsBean> assets1) {
        this.assets1 = assets1;
    }

    public List<AssetsBean> getAssets2() {
        return assets2;
    }

    public void setAssets2(List<AssetsBean> assets2) {
        this.assets2 = assets2;
    }

    public List<AssetsBean> getAssets4() {
        return assets4;
    }

    public void setAssets4(List<AssetsBean> assets4) {
        this.assets4 = assets4;
    }

    public List<AssetsBean> getAssets3() {
        return assets3;
    }

    public void setAssets3(List<AssetsBean> assets3) {
        this.assets3 = assets3;
    }

    public static class AssetsBean implements Parcelable {
        /**
         * division : JTSBU
         * image : /tanwan/image/0b3f9b2773cdd662d68d872d86a0c0c1.jpeg
         * assetNumber : ZXWL01012021110001
         * assetName : 屏风办公桌
         * model : 22
         * place : 广州-奥体-1栋
         * dept : 财务部
         * type : 服务器
         * user : 吴旭霞
         */

        private String division;
        private String image;
        private String assetNumber;
        private String assetName;
        private String model;
        private String place;
        private String dept;
        private String type;
        private String user;
        private String checkStatus;

        public String getDivision() {
            return division;
        }

        public void setDivision(String division) {
            this.division = division;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getAssetNumber() {
            return assetNumber;
        }

        public void setAssetNumber(String assetNumber) {
            this.assetNumber = assetNumber;
        }

        public String getAssetName() {
            return assetName;
        }

        public void setAssetName(String assetName) {
            this.assetName = assetName;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public String getPlace() {
            return place;
        }

        public void setPlace(String place) {
            this.place = place;
        }

        public String getDept() {
            return dept;
        }

        public void setDept(String dept) {
            this.dept = dept;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getUser() {
            return user;
        }

        public void setUser(String user) {
            this.user = user;
        }

        public String getCheckStatus() {
            return checkStatus;
        }

        public void setCheckStatus(String checkStatus) {
            this.checkStatus = checkStatus;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.division);
            dest.writeString(this.image);
            dest.writeString(this.assetNumber);
            dest.writeString(this.assetName);
            dest.writeString(this.model);
            dest.writeString(this.place);
            dest.writeString(this.dept);
            dest.writeString(this.type);
            dest.writeString(this.user);
            dest.writeString(this.checkStatus);
        }

        public AssetsBean() {
        }

        protected AssetsBean(Parcel in) {
            this.division = in.readString();
            this.image = in.readString();
            this.assetNumber = in.readString();
            this.assetName = in.readString();
            this.model = in.readString();
            this.place = in.readString();
            this.dept = in.readString();
            this.type = in.readString();
            this.user = in.readString();
            this.checkStatus = in.readString();
        }

        public static final Parcelable.Creator<AssetsBean> CREATOR = new Parcelable.Creator<AssetsBean>() {
            @Override
            public AssetsBean createFromParcel(Parcel source) {
                return new AssetsBean(source);
            }

            @Override
            public AssetsBean[] newArray(int size) {
                return new AssetsBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.date);
        dest.writeString(this.num1);
        dest.writeString(this.createdate);
        dest.writeString(this.sum);
        dest.writeString(this.createuser);
        dest.writeString(this.num4);
        dest.writeString(this.num3);
        dest.writeString(this.num2);
        dest.writeTypedList(this.assets2);
        dest.writeTypedList(this.assets1);
        dest.writeTypedList(this.assets4);
        dest.writeTypedList(this.assets3);
    }

    public OfflineCheckData() {
    }

    protected OfflineCheckData(Parcel in) {
        this.date = in.readString();
        this.num1 = in.readString();
        this.createdate = in.readString();
        this.sum = in.readString();
        this.createuser = in.readString();
        this.num4 = in.readString();
        this.num3 = in.readString();
        this.num2 = in.readString();
        this.assets2 = in.createTypedArrayList(AssetsBean.CREATOR);
        this.assets1 = in.createTypedArrayList(AssetsBean.CREATOR);
        this.assets4 = in.createTypedArrayList(AssetsBean.CREATOR);
        this.assets3 = in.createTypedArrayList(AssetsBean.CREATOR);
    }

    public static final Parcelable.Creator<OfflineCheckData> CREATOR = new Parcelable.Creator<OfflineCheckData>() {
        @Override
        public OfflineCheckData createFromParcel(Parcel source) {
            return new OfflineCheckData(source);
        }

        @Override
        public OfflineCheckData[] newArray(int size) {
            return new OfflineCheckData[size];
        }
    };
}
